package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountClassify;
import com.ecoolex.discount.sales.entity.DiscountClassifyExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountClassifyMapper {
    long countByExample(DiscountClassifyExample example);

    int deleteByExample(DiscountClassifyExample example);

    int deleteByPrimaryKey(Integer classifyId);

    int insert(DiscountClassify record);

    int insertSelective(@Param("record") DiscountClassify record, @Param("selective") DiscountClassify.Column ... selective);

    DiscountClassify selectOneByExample(DiscountClassifyExample example);

    List<DiscountClassify> selectByExample(DiscountClassifyExample example);

    DiscountClassify selectByPrimaryKey(Integer classifyId);

    DiscountClassify selectByPrimaryKeyWithLogicalDelete(@Param("classifyId") Integer classifyId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountClassify record, @Param("example") DiscountClassifyExample example, @Param("selective") DiscountClassify.Column ... selective);

    int updateByExample(@Param("record") DiscountClassify record, @Param("example") DiscountClassifyExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountClassify record, @Param("selective") DiscountClassify.Column ... selective);

    int updateByPrimaryKey(DiscountClassify record);

    int batchInsert(@Param("list") List<DiscountClassify> list);

    int batchInsertSelective(@Param("list") List<DiscountClassify> list, @Param("selective") DiscountClassify.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountClassifyExample example);

    int logicalDeleteByPrimaryKey(Integer classifyId);
}